FROM apache/dolphinscheduler-worker:3.1.7
LABEL authors="RXS"

RUN apt-get update \
    && apt-get install -y python2 \
    && mkdir -p /opt/soft/python/bin \
    && ln -s /usr/bin/python2.7 /opt/soft/python/bin/python2.7 \
    && apt-get install -y wget \
    && mkdir -p /opt/tmp \
    && cd /opt/tmp \
    && wget https://datax-opensource.oss-cn-hangzhou.aliyuncs.com/202306/datax.tar.gz \
    && tar -xzvf datax.tar.gz \
    && mv datax /opt/soft